﻿package Message.Game
{
    import Engine.RMI.*;
    import Framework.Serialize.*;
    import Message.Public.*;

    public class IFightPrxHelper extends RMIProxyObject implements IFightPrx
    {
        public static const NAME:String = "Message.Game.IFight";

        public function IFightPrxHelper()
        {
            name = "IFight";
            return;
        }// end function

        public function applyBattle_async(param1:AMI_IFight_applyBattle, param2:SEntityId) : void
        {
            var _loc_3:* = makeContext(session);
            var _loc_4:* = makeCall("applyBattle");
            var _loc_5:* = new SerializeStream();
            param2.__write(_loc_5);
            Outgoing.invokeAsync(_loc_3, _loc_4, _loc_5, param1);
            return;
        }// end function

        public function applyBattleByGuild_async(param1:AMI_IFight_applyBattleByGuild) : void
        {
            var _loc_2:* = makeContext(session);
            var _loc_3:* = makeCall("applyBattleByGuild");
            var _loc_4:* = new SerializeStream();
            Outgoing.invokeAsync(_loc_2, _loc_3, _loc_4, param1);
            return;
        }// end function

        public function collect_async(param1:AMI_IFight_collect, param2:SEntityId, param3:Boolean) : void
        {
            var _loc_4:* = makeContext(session);
            var _loc_5:* = makeCall("collect");
            var _loc_6:* = new SerializeStream();
            param2.__write(_loc_6);
            _loc_6.writeBool(param3);
            Outgoing.invokeAsync(_loc_4, _loc_5, _loc_6, param1);
            return;
        }// end function

        public function dispelBuffSelf_async(param1:AMI_IFight_dispelBuffSelf) : void
        {
            var _loc_2:* = makeContext(session);
            var _loc_3:* = makeCall("dispelBuffSelf");
            var _loc_4:* = new SerializeStream();
            Outgoing.invokeAsync(_loc_2, _loc_3, _loc_4, param1);
            return;
        }// end function

        public function fight_async(param1:AMI_IFight_fight, param2:SFightOper) : void
        {
            var _loc_3:* = makeContext(session);
            var _loc_4:* = makeCall("fight");
            var _loc_5:* = new SerializeStream();
            param2.__write(_loc_5);
            Outgoing.invokeAsync(_loc_3, _loc_4, _loc_5, param1);
            return;
        }// end function

        public function obBattle_async(param1:AMI_IFight_obBattle, param2:String) : void
        {
            var _loc_3:* = makeContext(session);
            var _loc_4:* = makeCall("obBattle");
            var _loc_5:* = new SerializeStream();
            _loc_5.writeString(param2);
            Outgoing.invokeAsync(_loc_3, _loc_4, _loc_5, param1);
            return;
        }// end function

        public function replyBattle_async(param1:AMI_IFight_replyBattle, param2:SEntityId, param3:Boolean) : void
        {
            var _loc_4:* = makeContext(session);
            var _loc_5:* = makeCall("replyBattle");
            var _loc_6:* = new SerializeStream();
            param2.__write(_loc_6);
            _loc_6.writeBool(param3);
            Outgoing.invokeAsync(_loc_4, _loc_5, _loc_6, param1);
            return;
        }// end function

        public function replyBattleByGuild_async(param1:AMI_IFight_replyBattleByGuild, param2:int, param3:String) : void
        {
            var _loc_4:* = makeContext(session);
            var _loc_5:* = makeCall("replyBattleByGuild");
            var _loc_6:* = new SerializeStream();
            _loc_6.writeInt(param2);
            _loc_6.writeString(param3);
            Outgoing.invokeAsync(_loc_4, _loc_5, _loc_6, param1);
            return;
        }// end function

        public function setFightMode_async(param1:AMI_IFight_setFightMode, param2:int) : void
        {
            var _loc_3:* = makeContext(session);
            var _loc_4:* = makeCall("setFightMode");
            var _loc_5:* = new SerializeStream();
            _loc_5.writeInt(param2);
            Outgoing.invokeAsync(_loc_3, _loc_4, _loc_5, param1);
            return;
        }// end function

        public function stopCollect_async(param1:AMI_IFight_stopCollect) : void
        {
            var _loc_2:* = makeContext(session);
            var _loc_3:* = makeCall("stopCollect");
            var _loc_4:* = new SerializeStream();
            Outgoing.invokeAsync(_loc_2, _loc_3, _loc_4, param1);
            return;
        }// end function

    }
}
